package com.chenglu.android.restaurant.adapter;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chenglu.android.R;
import com.chenglu.android.goodsinfo.touch.BigImgActivity;
import com.chenglu.android.restaurant.bean.GoodscategorylisBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: lyj
 * @Created: by Copyright 2023 3 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：满减
 */
public class ShopStoryListAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    Context mContext;

    public ShopStoryListAdapter(Context context, @Nullable List<String> data) {
        super(R.layout.item_shop_story, data);
        this.mContext = context;
    }


    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        ImageView imageView = helper.getView(R.id.iv_item_src);
        Glide.with(mContext).load(item).into(imageView);

    helper.addOnClickListener(R.id.iv_item_src);


    }

}
